.. _syntax-error,-unexpected-token-":",-expecting-")": syntax error, unexpected token ":", expecting ")" ------------------------------------------------- .. meta:: :description: syntax error, unexpected token ":", expecting ")": Single colons ``:`` are allowed in a method call, as they separate the value and the name of the named parameter. :og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png :og:type: article :og:title: syntax error, unexpected token ":", expecting ")" :og:description: Single colons ``:`` are allowed in a method call, as they separate the value and the name of the named parameter :og:url: https://php-errors.readthedocs.io/en/latest/messages/syntax-error%2C-unexpected-token-%22%3A%22%2C-expecting-%22%29%22.html :og:locale: en :twitter:card: summary_large_image :twitter:site: @exakat :twitter:title: syntax error, unexpected token ":", expecting ")" :twitter:description: syntax error, unexpected token ":", expecting ")": Single colons ``:`` are allowed in a method call, as they separate the value and the name of the named parameter :twitter:creator: @exakat :twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png .. raw:: html Description ___________ Single colons ``:`` are allowed in a method call, as they separate the value and the name of the named parameter. Here, the name of the parameter is missing. Example _______ .. code-block:: php Solutions _________ + Add the name of the parameter before the colon. + Remove the colon.